package com.palm.platform;

import com.palm.core.anno.Menu;
import com.palm.core.anno.Permission;

/**
 * 系统菜单定义
 */
@Menu(value = "系统管理", icon = "icon-cog", id = PlatformMenu.ID,order = 996)
public interface PlatformMenu {

    //首页菜单没有parent,排序靠前
    @Menu(value = "首页", path = "home.vue", icon = "h-icon-home",order=-10,parent = "")
    String Home = "Home";

    String ID = "platform";

    @Menu(value = "用户管理", path = "platform/user.vue", icon = "h-icon-users")
    String USER = ID + ".user";

    //增删改
    @Permission(value = "新增", parent = USER)
    String USER_ADD = USER + ".add";
    @Permission(value = "修改", parent = USER)
    String USER_EDIT = USER + ".edit";
    @Permission(value = "删除", parent = USER)
    String USER_DELETE = USER + ".delete";

    //
    @Menu(value = "部门管理", path = "platform/branch.vue", icon = "icon-layers", order = 1)
    String BRANCH = ID + ".branch";

    @Menu(value = "字典管理", path = "platform/dictionary.vue", icon = "icon-book")
    String DICTIONARY = ID + ".dictionary";

    @Menu(value = "角色管理", path = "platform/role.vue", icon = "icon-flag")
    String ROLE = ID + ".role";

}
